package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_state_upgrade", desc = "凡人修仙传-境界升级日志", autoSave = true, uploadCk = true)
public class LogXiuXianStateUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "升级前境界id")
    private int beforeStateId;

    @FieldTypeAnnotation(desc = "升级后境界id")
    private int afterStateId;

    @FieldTypeAnnotation(desc = "升级时仙力")
    private long powerVal;

    @FieldTypeAnnotation(desc = "是否渡劫成功")
    private boolean isSuccess;

    public LogXiuXianStateUpgrade(long userId, int activityId, int beforeStateId, int afterStateId, long powerVal, boolean isSuccess) {
        this.userId = userId;
        this.activityId = activityId;
        this.beforeStateId = beforeStateId;
        this.afterStateId = afterStateId;
        this.powerVal = powerVal;
        this.isSuccess = isSuccess;
    }

    public long getUserId() {
        return userId;
    }
}
